package cn.dapeng.lambda;

import java.util.ArrayList;
import java.util.List;

public class LambdaT03 {

    public static void main(String[] args) {

        List<String> l1 = List.of("JAVA", "C++", " MCA ");

        List<String> l2 = new ArrayList<>();
        l1.forEach(t -> l2.add(t.strip().transform(t1 -> "Hello:" + t1)));
        l2.forEach(System.out::println);

        List<String> l3 = new ArrayList<>();
        l1.stream().map(String::strip).map(String::toLowerCase).map(t1 -> "Hello:" + t1).forEach(l3::add);
        l3.forEach(System.out::println);

        String words = """
                <html>xxx</html?
                """;

    }
}
